package com.example.app.util;

import android.content.Context;
import android.widget.Toast;

/**
 * 描述:
 *
 * @author chenconghua
 * @version 1.0
 * @create 2022-10-04 09:26
 */
public class ToastUtil {
    static Toast toast;

    public static  void ShowToast(Context context, String s){

        if (null==toast){
            toast = Toast.makeText(context,s,Toast.LENGTH_LONG);
        }else
            toast.setText(s);
        toast.show();
    }
}
